package com.reguang.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 
 * Title: TreeDO
 *<p>Description: </p> 
 * @author 路汉腾    
 * 2020年2月2日 下午7:42:34
 */

public class TreeDO  implements Serializable {

	
	/**
	* @Fields serialVersionUID : TODO(描述这个变量表示什么)
	*/
	private static final long serialVersionUID = 1L;
	//
	private Integer id;
	// 父菜单ID，一级菜单为0
	private String parent;
	// 菜单名称
	private String text;
	// 选中状态 0 未选中 1选中
	private String state;
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}
	/**
	 * @return the parent
	 */
	public String getParent() {
		if("0".equals(parent)) {
			return "#";
		}
		return parent;
	}
	/**
	 * @param parent the parent to set
	 */
	public void setParent(String parent) {
		this.parent = parent;
	}
	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}
	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}
	
	

	
}
